package com.example.springsecuritydemo.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @Classname: MyService
 * @Description: 自定义方法实现权限控制
 * @Date: 2021/3/17 22:11
 * @Created: by Wang Xu
 */
public interface MyService {

    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
